/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘国水
 * Date: 2025-04-14
 * Time: 22:09
 */
public class Test {
    public static void main(String[] args) {
        MyArray myArray = new MyArray();
        myArray.add(0,11);
        myArray.add(1,22);
        myArray.add(2,33);
        myArray.add(3,44);
        myArray.display();
        myArray.remove(22);
        myArray.display();
    }
    public static void main1(String[] args) {
        MyArray myArray = new MyArray();
        myArray.add(1);
        myArray.add(2);
        myArray.add(3);
        myArray.add(4);
        myArray.display();
    }
}
